#include <stdio.h>
int main()
{int i=2;
int m=1;
    int n;
    scanf("%d",&n);
    while(i<=n)
    {m=(m+1)*2;
    i++;

    }
printf("%d",m);
    return 0;
}
